<div class="col-md-12">

	<div class="panel panel-default mt20">
		<div class="panel-body">
			<div class="form-group">
				<div class="col-sm-12">
					<div class="row">
						<div class="col-sm-3" ng-show="showTitle">
							<ui-select ng-model="searchform.view" theme="bootstrap" ng-disabled="lock" ng-keyup="myKeyup($event)">
								<ui-select-match placeholder="请选择一个目的地">{{$select.selected.name}}</ui-select-match>
								<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
									<span ng-bind-html="item.name | highlight: $select.search"></span>
									<span ng-show="item.code">({{item.code}})</span>
								</ui-select-choices>
							</ui-select>
						</div>
						<div class="col-sm-2" ng-show="showTitle">
							<input type="text" class="form-control" ng-model="searchform.code" ng-keyup="myKeyup($event)" placeholder="设备号">
						</div>
						<div class="col-sm-2" ng-show="showTitle">
							<input type="text" class="form-control" ng-model="searchform.remarks" placeholder="设备描述">
						</div>
						<div class="col-sm-2 pull-right" ng-show="showTitle">
							<button class="btn btn-info btn-block" ng-click="load()">立即搜索</button>
						</div>
						<div class="col-sm-2 pull-right" ng-show="!showTitle">
							<button class="btn btn-info btn-block" ng-click="addDevice()">添加微信验票</button>
						</div>
					</div>
				</div>
				<!--<div class="col-xs-4">
				</div>-->
				<!--<div class="col-sm-4 text-right pull-right">
					<button type="button" class="btn btn-default search" ng-click="load()">立即搜索</button>
					<button type="button" class="btn btn-info new" ng-click="create()">创建设备</button>
				</div>-->
			</div>
		</div>
	</div>
	<!-- searchArea -->


	<div class="panel panel-default">
		<div class="panel-body">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th class="text-center col-md-2">序号</th>
						<th class="text-center col-md-2">目的地</th>
						<th class="text-center col-md-2">设备描述</th>
						<th class="text-center col-md-2">设备号</th>
						<th class="text-center col-md-2">配置票种</th>
						<th class="text-center col-md-2">设备状态</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="obj in objs">
            <td class="text-center">{{$index + 1}}</td>
						<td class="text-center">{{obj.place_name}}</td>
						<td class="text-center">{{obj.remarks}}</td>
						<td class="text-center">{{obj.code}}</td>
						<td class="text-center">{{obj.type_name}}</td>
						<td class="text-center">
              <p ng-if="obj.Heartbeat == '0'">离线</p>
              <p ng-if="obj.Heartbeat == '1'">在线</p>
            </td>
					</tr>
				</tbody>
			</table>


			<!-- <div class="text-right">
				<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
				 first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
				 class="m-t-none m-b">
				</pagination>
			</div> -->
		</div>
	</div>
</div>